/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.gwc.yy.liuxue.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 院校Entity
 * @author 黎俊涛
 * @version 2017-07-05
 */
public class School extends DataEntity<School> {
	
	private static final long serialVersionUID = 1L;
	private String schoolName;		// 学校名
	private Area area;		// 区域
	private String schIntro;		// 院校介绍
	private String profIntro;		// 专业介绍
	private String admissionRequire;		// 录取要求
	private String occPlan;		// 职业规划
	private String eduSystem;		// 学制
	private String schoolType;		// 院校类型
	private List<ProfIntro> profIntroList = Lists.newArrayList();		// 子表列表
	
	public School() {
		super();
	}

	public School(String id){
		super(id);
	}

	@Length(min=1, max=50, message="学校名长度必须介于 1 和 50 之间")
	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}
	
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=1000, message="院校介绍长度必须介于 0 和 1000 之间")
	public String getSchIntro() {
		return schIntro;
	}

	public void setSchIntro(String schIntro) {
		this.schIntro = schIntro;
	}
	
	@Length(min=0, max=1000, message="专业介绍长度必须介于 0 和 1000 之间")
	public String getProfIntro() {
		return profIntro;
	}

	public void setProfIntro(String profIntro) {
		this.profIntro = profIntro;
	}
	
	@Length(min=0, max=1000, message="录取要求长度必须介于 0 和 1000 之间")
	public String getAdmissionRequire() {
		return admissionRequire;
	}

	public void setAdmissionRequire(String admissionRequire) {
		this.admissionRequire = admissionRequire;
	}
	
	@Length(min=0, max=500, message="职业规划长度必须介于 0 和 500 之间")
	public String getOccPlan() {
		return occPlan;
	}

	public void setOccPlan(String occPlan) {
		this.occPlan = occPlan;
	}
	
	@Length(min=0, max=500, message="学制长度必须介于 0 和 500 之间")
	public String getEduSystem() {
		return eduSystem;
	}

	public void setEduSystem(String eduSystem) {
		this.eduSystem = eduSystem;
	}
	
	@Length(min=0, max=64, message="院校类型长度必须介于 0 和 64 之间")
	public String getSchoolType() {
		return schoolType;
	}

	public void setSchoolType(String schoolType) {
		this.schoolType = schoolType;
	}
	
	public List<ProfIntro> getProfIntroList() {
		return profIntroList;
	}

	public void setProfIntroList(List<ProfIntro> profIntroList) {
		this.profIntroList = profIntroList;
	}
}